<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body style="background-color:#F5F2ED">
<%
	String uri= (String)request.getParameter("uri");
%>
<div class="moreProductsIfra">
  <h1 >更多商品</h1>
  <table border="0" cellspacing="0" cellpadding="0">
  <s:iterator value="sofas" status="sofa">
  <s:if test="#sofa.odd|#sofa.first">
  <tr>
  </s:if>
    <td width="320px"><table border="0" cellspacing="0" cellpadding="0" id="moreProductsStyle">
      <tr>
        <td width="200px" align="center" valign="middle"><a href="sofaDetail.action?id=<s:property value='id'/>" class="moreImg"><img src="download.action?id=<s:property value='id'/>" /></a></td>
        <td width="120px"  valign="top"><ul id="moreProductsWord"><li class="first"><a href="sofaDetail.action?id=<s:property value='id'/>" class="name"><s:property value="name"/></a></li><li>价格：<s:property value="prize"/></li><li>推荐度：<br/>
        <s:bean name="org.apache.struts2.util.Counter" id="counter">
        <s:param name="first" value="1"/>
        <s:param name="last" value="5"/>
        <s:iterator><s:if test="#counter.current-1<=recommend"><img src="images/good_ok.png" class="recommend" width="16px" height="16px"/></s:if><s:else><img src="images/good_no.png" class="recommend" width="16px" height="16px"/></s:else></s:iterator>
        </s:bean></li></ul></td>
      </tr>
    </table></td>
  <s:if test="#sofa.even|#sofa.last">
  </tr>
  </s:if>
  </s:iterator>
</table>
<table width="100%" class="pageStyle" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" style="padding-top: 10px"><%@ include file="../page.jsp"%></td></tr></table>
</div>
</body>
</html>